<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>用户管理3</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	$(document).ready(function() {})
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li <c:if test="${flag eq 1}">class="active"</c:if>><a href="${ctx}/mms/statistics/orderList?flag=1">领取资料信息</a></li>
		<li <c:if test="${flag eq 2}">class="active"</c:if>><a href="${ctx}/mms/statistics/orderList?flag=2">订单信息</a></li>
		<li class="active"><a href="${ctx}/mms/statistics/orderList?flag=2">查看详情</a></li>
	</ul>
	<c:if test="${flag eq 2}">
		<form class="breadcrumb form-search ">
			<label>
				总订单数：<c:if test="${empty totalNum }">0</c:if><c:if test="${not empty totalNum }">${totalNum }</c:if>
			</label>
			<label>
				订单总额：<c:if test="${empty totalPrice }">0.0</c:if><c:if test="${not empty totalPrice }">${totalPrice }</c:if>
			</label>
			<label>
				已支付订单：<c:if test="${empty yesPayNum }">0.0</c:if><c:if test="${not empty yesPayNum }">${yesPayNum }</c:if>
			</label>
			<label>
				未支付订单：<c:if test="${empty noPayNum }">0.0</c:if><c:if test="${not empty noPayNum }">${noPayNum }</c:if>
			</label>
		</form>
	</c:if>
	<form  action="" method="post"
		class="breadcrumb form-search ">
		<div style="margin-top:8px;">
			<label>订单ID：&nbsp;</label>${mmsOrder.id}
			<label>下单时间：&nbsp;</label><fmt:formatDate value="${mmsOrder.placeOrderTime}" type="both"/>
			<label>订单类型：&nbsp;
				<c:if test="${mmsOrder.orderType eq 1 }">APP下单</c:if>
				<c:if test="${mmsOrder.orderType eq 2 }">二维码下单</c:if>
				<c:if test="${mmsOrder.orderType eq 3 }">图书下单</c:if>
			</label>
			<label>订单状态：&nbsp;
				<c:if test="${mmsOrder.orderState eq 1 }">已支付</c:if>
				<c:if test="${mmsOrder.orderState eq 2 }">未支付</c:if>
			</label>
			<label>支付方式：&nbsp;
				<c:if test="${mmsOrder.payType eq 1 }">微信</c:if>
				<c:if test="${mmsOrder.payType eq 2 }">支付宝</c:if>
				<c:if test="${mmsOrder.payType eq 3 }">pos或现金</c:if>
			</label>
			<label>订单金额：&nbsp;${mmsOrder.price}
			</label>
		</div>
	</form>
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>商品名称</th>
				<th>商品价格</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${moiList}" var="orderItem">
				<tr>
					<td>
						${orderItem.goodsName}
					</td>
					<td>
						${orderItem.itemPrice}
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<form  class="breadcrumb form-search ">
		<div style="margin-top:8px;">
			<label>学员账号：&nbsp;</label>${mmsOrder.userId}
			<label>是否新用户：&nbsp;</label><c:if test="${mmsOrder.isNewType eq 0}">否</c:if><c:if test="${mmsOrder.isNewType eq 1}">是</c:if>
		</div>
	</form>
		<form  class="breadcrumb form-search ">
		<div style="margin-top:8px;">
			<label>活动名称：&nbsp;${mmsOrder.activityName}</label>
			<label>组名称：&nbsp;${mmsOrder.groupName}</label>
			<label>位置：&nbsp;${mmsOrder.groupProvinceName} > ${mmsOrder.groupCityName}</label>
			<label>操作员：&nbsp;
				<c:if test="${empty mmsOrder.operatorName}">无</c:if>
				<c:if test="${not empty mmsOrder.operatorName}">${mmsOrder.operatorName}</c:if>
			</label>
			<label>二维码类型：&nbsp;
				<c:if test="${mmsOrder.orderType eq 1 }">无</c:if>
				<c:if test="${mmsOrder.orderType eq 2 }">宣传单页</c:if>
				<c:if test="${mmsOrder.orderType eq 3}">图书下单</c:if>
				<c:if test="${mmsOrder.orderType eq 4}">海报/易拉宝</c:if>
			</label>
			<label>二维码编号：&nbsp;
				<c:if test="${mmsOrder.orderType eq 1 }">无</c:if>
				<c:if test="${mmsOrder.orderType ne 1 }">${mmsOrder.operatorName}</c:if>
			</label>
		</div>
	</form>
</body>
</html>